﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="doUpdate.aspx.cs" Inherits="GroupCheer.doUpdate" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Facebook</title>

    <script language="JavaScript" type="text/JavaScript">
        window.resizeTo(600, 550);
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div style="font-family: verdana; position: relative; left: 12%; top: 12%; font-size: 12px;
        width: 100%; margin-left: auto; margin-right: auto;">
        <br>
        <img id="fblogo" src="http://profile.ak.fbcdn.net/hprofile-ak-snc4/174597_20531316728_2866555_q.jpg" />
        <asp:Panel ID="pnlStatusForm" runat="server" Visible="false" Width="460px">
            <br />
            <asp:Label ID="lblInfo" runat="server" Text="" ForeColor="#FF5050" />
            <asp:Image ID="imgCurrentUser" runat="server" />
            <br />
            Week1:Zaric Rich's Goal(Lose 30 lbs in 3 months)
            <br />
            <br />
            Current Weight: 205 lbs<br />
            Target Weight: 175 lbs<br />
            Start Date: 04/01/2012<br />
            End Date:06/30/2012<br />
            First Checkpoint Date:04/08/2012<br />

            <div style="width: 460px">
                <p>
                    In the text box, you can enter the custom message to share with family and friends. Then, click
                    Update status.
                    <br /><br />
                    Message: <asp:TextBox ID="txtStatus" runat="server" Height="70px" TextMode="MultiLine" Width="450px" MaxLength="140"></asp:TextBox>
                    <div align="right">(140 characters or less)</div>
                </p>
                <p align="left">
                    <input id="close" type="button" onclick="javascript:window.close()" value="Close" />
                    <asp:Button ID="btnSubmit" Text="Update status" runat="server" OnClick="btnSubmit_Click"
/>
                </p>
            </div>
        </asp:Panel>
        <asp:Panel ID="pnlThankYou" runat="server" Visible="false">
            <h3>
                Your Facebook Status has been updated!</h3>
            <a href="http://www.facebook.com" target="_newwin">Go to Facebook</a> and see your
            updated status, or
            <asp:LinkButton ID="btnAgain" runat="server" Text="update your status again" OnClick="btnAgain_Click">
            </asp:LinkButton>.
        </asp:Panel>
        <asp:Panel ID="pnlError" runat="server" Visible="false">
            <h4>
                Facebook error. Please reconnect to Facebook and try again.</h4>
            <h3>
                <input type="button" onclick='window.location="update.aspx'
                    value="Log In" /></h3>
            <b>If unsuccessful, you may need to log in to Facebook directly.</b><br>
            <a href="http://www.facebook.com" target="_newwin">www.facebook.com</a><br />
            <br />
            <br />
            <b>Facebook system message:</b><br>
            [[<asp:Label ID="lblError" runat="server" Text="" />]]
        </asp:Panel>
    </div>
    </form>
</body>
</html>
